<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">
        <cnp>
            <template  v-slot:center>
                <span >标签</span>
            </template>
            <template  v-slot:right>
                <span >右边2</span>
            </template>
            <span>标签</span>
        </cnp>
    </div>
    <template id="cpn">
        <div>
            <slot name="left"><span>左边</span></slot>
            <slot name="center"><span>中间</span></slot>
            <slot name="right"><span>右边</span></slot>
            <slot><span>ddd</span></slot>
        </div>
    </template>
    <script>
    const app = new Vue({
        el: '#app',
        data: {},
        methods: {},
        components: {
            cnp: {
                template: '#cpn'
            }
        }
    })
    </script>
</body>
</html>